﻿<%@ Page Title="ModifySeason" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="ModifySeason.aspx.cs" Inherits="ModifySeason" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act1" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Évad szerkesztése
    </h2>
    <asp:UpdatePanel ID="ModifySeasonUpdatePanel" runat="server" UpdateMode="Always">
    <Triggers>
        <asp:PostBackTrigger ControlID="SeasonModify" />
    </Triggers>
    <ContentTemplate>
        <fieldset ID="ModifySeasonPanel" runat="server">
        <table class="formTable" dir="ltr">
            <tr>
                <td class="right">
                    <asp:Label  ID="Label1" runat="server" Text="Sorozat:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:DropDownList ID="AddSeasonChooseSeries" runat="server" Width="300px" AutoPostBack="false" />
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label7" runat="server" Text="Évad száma:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddSeasonNumber" runat="server" Width="300px" AutoPostBack="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label3" runat="server" Text="Megjelenés dátuma:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddSeasonReleaseDate" runat="server" Width="300px" AutoPostBack="false"></asp:TextBox>
                    <act1:CalendarExtender ID="AddSeasonReleaseDateExtender" TargetControlID="AddSeasonReleaseDate" Format="yyyy-MM-dd" runat="server"></act1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label5" runat="server" Text="Nyitó kép:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:CheckBox ID="AddSeasonKeepImgCheck" runat="server" 
                        Text="Új kép feltöltése" Checked="false" 
                        oncheckedchanged="AddSeasonKeepImgCheck_CheckedChanged" AutoPostBack="true" />
                    <div id="AddSeasonKeepImgDiv" runat="server">
                        <asp:Image ID="AddSeasonKeepImg" runat="server" Width="150px" Height="150px" ImageUrl="~/images/nopic.png" />
                    </div>
                    <div id="AddSeasonChangeImgDiv" runat="server" visible="false">
                        <asp:FileUpLoad id="AddSeasonImg" runat="server" autopostback="false"/>
                        <br />
                        <asp:Label runat="server" id="StatusLabel" text="" ForeColor="Red"  />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label6" runat="server" Text="Beágyazott video címe:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddSeasonEmbedVideo" runat="server" Width="300px" AutoPostBack="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label4" runat="server" Text="Rövidebb tartalmi leírás:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddSeasonDescription" runat="server" Width="400px" 
                        Height="120px" TextMode="MultiLine" AutoPostBack="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                </td>
                <td class="right">
                    <asp:Button ID="SeasonModify" runat="server" Text="Módosítás" 
                        onclick="SeasonModify_Click" />
                    <asp:Button ID="SeasonCancel" runat="server" Text="Mégse" 
                        onclick="SeasonCancel_Click" />
                </td>
            </tr>
        </table>
        </fieldset>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

